case 1 for finding pi